import {Config} from '../../utils/Config.js'
import Https from '../../utils/Https'
class Model extends Https {
    getlist({offset,limit}) {
        // let url = Config.course_url
        let url = 'http://127.0.0.1/bnstudy/public/index.php/api/v1/course'
        let data = {offset, limit}
        return this.https_req6({url, data})
    }
    getcate() {
        wx.showLoading({
          title: '加载中',
          mask: true
        })
        let url = Config.Cate_url;
        return this.https_req6({url})
    }
    getSoldGood() {
        let url = Config.sold_good_url;
        return this.https_req6({url})
    }
    getIndexDataBlock() {
        let url = Config.index_data_block_url;
        return this.https_req6({url})
    }
}
export default Model